import 'package:flutter/material.dart';

class ScreenSafeAreaFix extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '全面屏适配',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Container(
        decoration:BoxDecoration(color: Colors.white),
        child: SafeArea(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              Text('顶部'),
              Text('底部'),
            ],
          ),
        )
      ),
    );
  }
}
